module LangTags
  include Radiant::Taggable

  class TagError < StandardError; end
  
  [:lang, :lang_url].each do |method|
    desc %{ 
      Renders the @#{method}@ attribute of the current page.
    }
    tag method.to_s do |tag|
      tag.locals.page.send(method)
    end
  end
end
